//
// Created by mio on 25-5-16.
//

#ifndef PULLERWGT_H
#define PULLERWGT_H

#include <QMainWindow>

#include "AVPlayer.h"

class PullerWgt : public QMainWindow
{
    Q_OBJECT
public:
    explicit PullerWgt(EventLoop* loop, QWidget *parent = nullptr);
    bool Connect(QString ip, uint16_t port, QString code);
    void StartPull();

protected:
    void resizeEvent(QResizeEvent *event) override;

protected:
    std::unique_ptr<AVPlayer> player_;
};



#endif //PULLERWGT_H
